Skip to content

Conversation

@A4-Tacks
Copy link
Member

fn foo() {
    let x =$0 n + 100;
}
fn foo() {
    let x = {
        n + 100
    };
}

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 15, 2025
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

```rust
fn foo() {
    let x =$0 n + 100;
}
```
->
```rust
fn foo() {
    let x = {
        n + 100
    };
}
```
@A4-Tacks A4-Tacks force-pushed the add-braces-assignment branch from 658a5b4 to 8d72c3d Compare October 23, 2025 19:59
@A4-Tacks A4-Tacks requested a review from Veykril October 24, 2025 01:03
@A4-Tacks
Copy link
Member Author

Okay, I rebased it to resolve the conflict of merging

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Oct 24, 2025
Merged via the queue into rust-lang:master with commit 72af6f5 Oct 24, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 24, 2025
@A4-Tacks A4-Tacks deleted the add-braces-assignment branch October 24, 2025 02:07
A4-Tacks added a commit to A4-Tacks/rust-analyzer that referenced this pull request Oct 24, 2025
@lnicola lnicola changed the title Add applicable on assignment for add_braces fix: offer add_braces on assignments Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants